<html><head><title>Date and Time Functions</title><meta name="filename" content="text/sbasic/common/03030000"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
<p class="Head1"><help:paragraphinfo state="U" number="1"/><help:link Id="66506">Date and Time Functions</help:link></p>
<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Use the statements and functions described here to perform date and time calculations.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic lets you calculate time or date differences by converting the time and date values to continuous numeric values. After the difference is calculated, special functions are used to reconvert the values to the standard time or date formats.</p>
<p class="TextInTable"><draw:image draw:name="Icon0" svg:desc="This icon is for tips on how to use the program more effectively." svg:pixelx="32" svg:pixely="32" svg:width="0.847cm" svg:height="0.847cm" xlink:href="66732" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
<p class="TextInTable"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>You can combine date and time values into a single floating-decimal number. Dates are converted to integers, and times to decimal values. <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic also supports the variable type Date, which can contain a time specification consisting of both a date and time.</p>